package main;


import modelo.Persona;

public class ReferenceCount {

	private Object obj1, obj2 , obj3;

	public void setObj1(Object obj1) {
		this.obj1 = obj1;
	}

	public Object getObj1() {
		return obj1;
	}

	public void setObj2(Object obj2) {
		this.obj2 = obj2;
	}

	public Object getObj2() {
		return obj2;
	}

	public void setObj3(Object obj3) {
		this.obj3 = obj3;
	}

	public Object getObj3() {
		return obj3;
	} 
	
	public static void main(String[] args) {
		ReferenceCount f = new ReferenceCount();
		f.setObj1(new Persona("Bertran"));
		f.setObj2(new Persona("Vandar"));
		f.setObj3(f.getObj1());
		f.setObj1(f.getObj2());
	}
}
